import _ from 'lodash'

export function numberOrNull (num) {
  return _.isFinite(num) ? num : null
}

export function numberOrZero (num) {
  return _.isFinite(num) ? num : 0
}
